package tau.facebook;

import tau.pimpmyfreedb.common.types.Gender;

public class FacebookFriend {
    private Long fbId;
    private String username;
    private String firstName;
    private String lastName;
    private Gender gender;
    private String picUrl;
    private String[] musicLikes;

    public FacebookFriend(Long fbId, String username, String firstName,
	    String lastName, Gender gender, String picUrl, String[] musicLikes) {
	this.fbId = fbId;
	this.username = username;
	this.firstName = firstName;
	this.lastName = lastName;
	this.gender = gender;
	this.picUrl = picUrl;
	this.musicLikes = musicLikes;
    }

    public Long getFacebookId() {
	return fbId;
    }

    public String getUsername() {
	return username;
    }

    public String getFirstName() {
	return firstName;
    }

    public String getLastName() {
	return lastName;
    }

    public Gender getGender() {
	return gender;
    }

    public String getPicUrl() {
	return picUrl;
    }

    public String[] getMusicLikes() {
	return musicLikes;
    }

    public String toString() {
	StringBuilder str = new StringBuilder();
	str.append("Name: " + firstName + " " + lastName + "\n");
	str.append("Music Likes:\n");
	for (String like : musicLikes)
	    str.append(like + ", ");
	str.delete(str.length() - 2, str.length());

	return str.toString();
    }
}
